import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn = [
    {
        title: '需求单编号',
        dataIndex: 'demandCode',
        key: 'demandCode'
    },
    {
        title: '需求单类型',
        dataIndex: 'demandType',
        key: 'demandType'
    },
    {
        tiel: '提报时间',
        dataIndex: 'reportingTime',
        key: 'reportingTime'
    },
    {
        title: '状态',
        dataIndex: 'demandStatus',
        key: 'demandStatus'
    },
    {
        title: '平台公司',
        dataIndex: 'platformCompony',
        key: 'platformCompony'
    },
    {
        title: '提报单位',
        dataIndex: 'reportingUnit',
        key: 'reportingUnit'
    }
]

export const searchFormSchema: FormSchema = [
    {
        label: '提报单位',
        field: 'reportingUnit',
        component: 'Select',
        componentProps: {
            placeholder: '请选择提报单位',
            allowClear: true
        }
    },
    {
        label: '提报时间',
        field: 'reportingTime',
        component: 'RangePicker',
        componentProps: {
            placeholder: ['起始时间', '结束时间'],
            allowClear: true
        }
    }
]